// api接口管理
const install = (Vue, vm) => {
  Vue.prototype.$api = {
    // 首页
    // banner图
    getHomeBanner: (params = {}) => vm.$u.post("/api/college/index_image", params),
    // 导航菜单
    getHomeNavList: (params = {}) => vm.$u.post("/api/index/banner_botton", params),
    // 修改律师定位
    editLawyerLocation: (params = {}) => vm.$u.post("/api/index/jlgx", params),
    // 分类
    getHomeClassifyList: (params = {}) => vm.$u.post("/api/index/topping", params),
    // 招聘分类列表
    getHomeRecruitClassifyList: (params = {}) => vm.$u.post("/api/index/index_type_list", params),
    // 招聘列表
    getHomeRecruitList: (params = {}) => vm.$u.post("/api/index/index_recruit_list", params),
    // 产品列表
    getHomeProductList: (params = {}) => vm.$u.post("/api/lawyer/product_recommendation", params),

    // 咨询信息
    getReleaseInfo: (params = {}) => vm.$u.post("/api/index/xq_de", params),
    // 咨询二级分类
    getReleaseTypeList: (params = {}) => vm.$u.get("/api/index/tw_type", params),
    // 提问类型
    getTypeList: (params = {}) => vm.$u.get("/api/index/dd_list", params),
    // 发布
    postRelease: (params = {}) => vm.$u.post("/api/index/demand_release", params),
    // 支付金额
    postPayRelease: (params = {}) => vm.$u.post("/api/Pay/fa_trusteeship", params),

    // 律师列表
    getReleaseLawyerList: (params = {}) => vm.$u.post("/api/index/more_recommended_lawyers", params),

    // 律师详情
    getLawyerDetails: (params = {}) => vm.$u.post("/api/index/lvs_de", params),

    // 律师列表
    getLawyersList: (params = {}) => vm.$u.post("/api/index/more_recommended_lawyers", params),

    // 文书广场
    getDocumentList: (params = {}) => vm.$u.post("/api/index/document_square", params),

    // 人才代表
    // getHomeLawyerList: (params = {}) => vm.$u.post("/api/lawyer/index_lawyer", params),
    // 立即聘请
    employLawyer: (params = {}) => vm.$u.post("/api/pay/employ_order", params),
    // 产品分类
    getPClassifyList: (params = {}) => vm.$u.post("/api/lawyer/nav_list", params),
    // 分类产品列表
    getProductClassifyList: (params = {}) => vm.$u.post("/api/lawyer/nav_xx_list", params),
    // 产品列表
    getProductList: (params = {}) => vm.$u.post("/api/member/product_recommendation", params),
    // 个人信息
    getOrderUserInfo: (params = {}) => vm.$u.post("/api/lawyer/people", params),
    // 产品详情
    getProductDetaial: (params = {}) => vm.$u.post("/api/lawyer/product_recommendation_de", params),
    getProductClassifyDetaial: (params = {}) => vm.$u.get("/api/lawyer/nav_xx_de", params),
    getUserProductDetail: (params = {}) => vm.$u.get("/api/member/product_recommendationde", params),
    updateUserProductDetail: (params = {}) => vm.$u.post("/api/member/product_recommendationde", params),
    // 产品评论列表
    getProductComment: (params = {}) => vm.$u.post("/api/lawyer/exclusive_service_list", params),
    // 购买产品
    purchaseProduct: (params = {}) => vm.$u.post("/api/pay/product_recommendation_order", params),

    // 法律精英
    getLawyerList: (params = {}) => vm.$u.post("/api/lawyer/legal_elite", params),
    // 律师详情
    getLawyerDetail: (params = {}) => vm.$u.post("/api/lawyer/lvs_de", params),
    // 律师对比 
    getLawyerResult: (params = {}) => vm.$u.post("/api/lawyer/duibi", params),
    // 律师评价
    getlawyerComment: (params = {}) => vm.$u.post("/api/lawyer/lvs_de_p", params),

    // 招贤纳才
    getRecruitList: (params = {}) => vm.$u.post("/api/index/recruit_talents_and_accept_wealth", params),
    getRecruitDetail: (params = {}) => vm.$u.post("/api/index/recruit_talents_and_accept_wealth_de", params),
    // 投递
    applyPosition: (params = {}) => vm.$u.post("/api/member/recruitment_delivery", params),

    // 好友列表
    getRecruitFriendList: (params = {}) => vm.$u.post("/api/index/people_list", params),
    // 推荐好友
    pushIn: (params = {}) => vm.$u.post("/api/index/push_in", params),

    // 收藏
    collection: (params = {}) => vm.$u.post("/api/member/collen", params),

    // 打听
    inquire: {
      // 圈子列表
      getCircleList: (params = {}) => vm.$u.post("/api/circle/m_circle", params),
      // 话题列表
      getTopicList: (params = {}) => vm.$u.post("/api/circle/topic_list_search", params),
      // 发布
      release: (params = {}) => vm.$u.post("/api/pay/dating", params),
      // 支付
      pay: (params = {}) => vm.$u.post("/api/pay/reward_payment_orders", params),
      // 打赏
      reward: (params = {}) => vm.$u.post("/api/pay/user_ds", params),
      // 列表
      getList: (params = {}) => vm.$u.post("/api/circle/dating_list", params),
      // 点赞
      fabulous: (params = {}) => vm.$u.post("/api/circle/d_dian", params),
      // 详情
      getDetail: (params = {}) => vm.$u.post("/api/circle/p_oen", params),
      // 评论
      releaseComment: (params = {}) => vm.$u.post("/api/circle/comment", params),
      // 点赞评论
      fabulousComment: (params = {}) => vm.$u.post("/api/circle/give_the_thumbs_up_ping_d", params),
      // 评论列表
      getCommentList: (params = {}) => vm.$u.post("/api/circle/lnquire_co", params),
      // 评论详情 
      getCommentDetail: (params = {}) => vm.$u.post("/api/circle/p_oens", params),
    },

    // 需求大厅
    getHallList: (params = {}) => vm.$u.post("/api/lawyer/xq_list", params),

    // 任务大厅
    getTaskList: (params = {}) => vm.$u.post("/api/demand/demand_release_list", params),
    getTaskDetail: (params = {}) => vm.$u.post("/api/demand/demand_release_de", params),
    // 咨询抢答
    getAnswerList: (params = {}) => vm.$u.post("/api/demand/demand_release_list_j", params),
    // 咨询抢答 类型列表
    getAnswerTypeList: (params = {}) => vm.$u.post("/api/demand/demand_release_type_j", params),
    // 应征
    applyFor: (params = {}) => vm.$u.post("/api/demand/user_demand_recruitment", params),

    // 消息列表
    getNewsList: (params = {}) => vm.$u.post("/api/member/my_news", params),
    // 修改状态
    updateNews: (params = {}) => vm.$u.post("/api/member/message_notification", params),

    // 登录
    login: (params = {}) => vm.$u.get("/api/member/login", params),
    // 更新用户信息
    updateUserInfo: (params = {}) => vm.$u.post("/api/member/information", params),
    // 选择身份
    selectIdentity: (params = {}) => vm.$u.post("/api/member/sf", params),
    // 获取用户信息
    getUserInfo: (params = {}) => vm.$u.get("/api/member/user_center", params),
    // 获取用户详细信息
    getUserInfoDetail: (params = {}) => vm.$u.get("/api/member/modify_information", params),
    // 修改用户信息
    modifyUserInfo: (params = {}) => vm.$u.post("/api/member/modify_information", params),
    // 修改工作经历状态
    modifyWorkStatus: (params = {}) => vm.$u.post("/api/lawyer/lvs_resume", params),
    // 添加工作经历
    addWorkExpere: (params = {}) => vm.$u.post("/api/member/work_experience", params),
    // 获取工作经历
    getWorkExpere: (params = {}) => vm.$u.get("/api/member/work_experience_edit", params),
    // 修改工作经历
    editWorkExpere: (params = {}) => vm.$u.post("/api/member/work_experience_edit", params),
    // 添加教育经历
    addEducationExpere: (params = {}) => vm.$u.post("/api/member/educational_experience", params),
    // 获取教育经历
    getEducationExpere: (params = {}) => vm.$u.get("/api/member/educational_experience_edit", params),
    // 修改教育经历
    editEducationExpere: (params = {}) => vm.$u.post("/api/member/educational_experience_edit", params),
    // 工作经历/教育经历列表
    getResumeList: (params = {}) => vm.$u.post("/api/member/user_list", params),
    // 技能标签/相关荣耀/擅长专业/擅长行业
    getResumeInfo: (params = {}) => vm.$u.get("/api/member/skill", params),
    // 技能标签/相关荣耀/擅长专业/擅长行业
    editResumeInfo: (params = {}) => vm.$u.post("/api/member/skill", params),
    // 添加荣耀
    addGlory: (params = {}) => vm.$u.post("/api/member/related_glory", params),
    // 荣耀列表
    getGloryList: (params = {}) => vm.$u.post("/api/member/related_glory_list", params),
    // 删除荣耀
    delGlory: (params = {}) => vm.$u.post("/api/member/related_glory_de", params),
    // 认同经历
    identityExperience: (params = {}) => vm.$u.post("/api/member/identification", params),
    // 订单
    getOrderList: (params = {}) => vm.$u.post("/api/member/user_order", params),
    getLawyerOrderList: (params = {}) => vm.$u.post("/api/member/lvs_order", params),
    // 确认完成订单
    completeOrder: (params = {}) => vm.$u.post("/api/member/user_wanc", params),
    // 解冻资金
    unfreezeFunds: (params = {}) => vm.$u.post("/api/member/user_order_jd", params),
    // 评价订单
    evaluateOrder: (params = {}) => vm.$u.post("/api/member/demand_order_evaluation", params),
    // 删除订单
    deleteOrder: (params = {}) => vm.$u.post("/api/member/user_de", params),
    // 参与
    getPartakeList: (params = {}) => vm.$u.post("/api/member/participate_in", params),
    // 互动
    getInteractionList: (params = {}) => vm.$u.post("/api/member/interaction", params),
    // 投标列表
    getPartakeDemandList: (params = {}) => vm.$u.post("/api/member/user_demand_recruitment_list", params),
    // 投标
    bidDemand: (params = {}) => vm.$u.post("/api/member/confirmd", params),
    // 资金托管
    fundCustody: (params = {}) => vm.$u.post("/api/pay/trusteeship", params),
    // 确认竞标完成
    biddingComplete: (params = {}) => vm.$u.post("/api/member/confirm", params),
    // 圈友
    getCircleFrientList: (params = {}) => vm.$u.post("/api/member/my_follow", params),
    // 身份认证状态
    authenStatus: (params = {}) => vm.$u.post("/api/member/authentication_status", params),
    // 获取身份认证信息
    getAuthenInfo: (params = {}) => vm.$u.get("/api/member/information_authentication", params),
    // 身份认证
    authen: (params = {}) => vm.$u.post("/api/member/information_authentication", params),
    // 身份认证
    editAuthen: (params = {}) => vm.$u.post("/api/member/information_authentication_edit", params),
    // 获取手机号验证码
    getCode: (params = {}) => vm.$u.post("/api/college/wechat_sms", params),
    // 招聘
    recruit: (params = {}) => vm.$u.post("/api/member/recruit", params),
    // 招聘信息
    getRecruit: (params = {}) => vm.$u.get("/api/member/recruit", params),
    // 招聘列表
    getUserRecruitList: (params = {}) => vm.$u.post("/api/member/my_recruit_talents_and_accept_wealth", params),
    getUserRecruitList2: (params = {}) => vm.$u.post("/api/member/my_td_list", params),
    // 投递列表
    getApplyPositionList: (params = {}) => vm.$u.post("/api/member/td_list", params),
    // 推介
    getRecommendList: (params = {}) => vm.$u.post("/api/member/recommend", params),
    // 竞标列表
    getBiddingList: (params = {}) => vm.$u.post("/api/member/demand_recruitment", params),
    // 我的抢答
    getMyAnswerList: (params = {}) => vm.$u.post("/api/member/demand_recruitment_j", params),
    // 修改费用
    modifyCost: (params = {}) => vm.$u.post("/api/member/xg_demand_recruitment", params),
    // 专属客户
    getCustomerList: (params = {}) => vm.$u.post("/api/member/exclusive_customer", params),
    // 会员卡
    getMemberCard: (params = {}) => vm.$u.post("/api/index/vip_card", params),
    // 会员卡
    getMemberCardDetail: (params = {}) => vm.$u.post("/api/index/vip_card_de", params),
    // 购买会员卡
    payMember: (params = {}) => vm.$u.post("/api/pay/user_membership_card", params),
    // 招募合伙人
    getJoinInfo: (params = {}) => vm.$u.get("/api/college/lvs_vip", params),
    // 服务定价
    // 线上服务
    onlineService: (params = {}) => vm.$u.post("/api/member/online_service", params),
    // 线上服务
    offlineService: (params = {}) => vm.$u.post("/api/member/offline_service", params),
    // 专属服务
    exclusiveService: (params = {}) => vm.$u.post("/api/member/exclusive_service", params),
    // 获取身份
    getIdentity: (params = {}) => vm.$u.get("/api/member/fa_zhuanshu", params),
    // 修改专属服务
    // postExclusiveService: (params = {}) => vm.$u.post("/api/member/fa_zhuanshu", params),
    // 获取商品信息
    getShopInfo: (params = {}) => vm.$u.get("/api/member/zhuanshu", params),
    // 获取商品信息
    modifyShopInfo: (params = {}) => vm.$u.post("/api/member/zhuanshu", params),

    // 圈子
    // 获取圈子列表
    getCircleTopicInfo: (params = {}) => vm.$u.post("/api/circle/circle_index", params),
    // 获取全部圈子
    getCircleList: (params = {}) => vm.$u.post("/api/circle/gd_circle", params),
    // 加入圈子
    joinCircle: (params = {}) => vm.$u.post("/api/circle/join_the_circle", params),
    // 获取圈子信息 
    getCircleDetail: (params = {}) => vm.$u.post("/api/circle/circles", params),
    // 获取加入圈子的列表
    getFriend: (params = {}) => vm.$u.post("/api/circle/join_circle_people", params),
    // 话题列表 
    getTopicList: (params = {}) => vm.$u.post("/api/circle/topic_list", params),
    // 话题详情 
    getTopicDetail: (params = {}) => vm.$u.post("/api/circle/topic_of_conversation", params),
    // 讨论详情
    getDiscussDetail: (params = {}) => vm.$u.post("/api/circle/topic_discussion_oen", params),
    // 评论列表
    getCircleCommentList: (params = {}) => vm.$u.post("/api/circle/question_and_answer", params),
    // 回复详情 
    getCircleReplyDetail: (params = {}) => vm.$u.post("/api/circle/topic_discussion_oens", params),
    // 关注话题
    followTopic: (params = {}) => vm.$u.post("/api/circle/dian", params),
    // 发布圈子
    releaseCircle: (params = {}) => vm.$u.post("/api/member/circle", params),
    // 圈子列表
    getTopicCircleList: (params = {}) => vm.$u.post("/api/dropdown/my_cirlce", params),
    // 发布话题
    releaseTopic: (params = {}) => vm.$u.post("/api/member/topic_of_conversation", params),
    // 发布讨论
    releaseDiscuss: (params = {}) => vm.$u.post("/api/member/topic_discussion", params),
    // 发布评论
    releaseComment: (params = {}) => vm.$u.post("/api/member/topic_discussion_comments", params),
    // 点赞
    fabulous: (params = {}) => vm.$u.post("/api/circle/give_the_thumbs_up_qtd", params),
    // 点赞评论
    fabulousComment: (params = {}) => vm.$u.post("/api/circle/give_the_thumbs_up_topic", params),
    // 关注好友
    followFriend: (params = {}) => vm.$u.post("/api/member/follow", params),

    // 获取需求发布
    getClassifyList: (params = {}) => vm.$u.get("/api/demand/demand_release_type", params),
    // 需求发布
    getDemandRelease: (params = {}) => vm.$u.get("/api/demand/demand_release", params),
    // 需求发布
    demandRelease: (params = {}) => vm.$u.post("/api/demand/demand_release", params),

    // 钱包
    getWalletInfo: (params = {}) => vm.$u.post("/api/member/my_wallet", params),
    // 打赏收益
    getRewardList: (params = {}) => vm.$u.post("/api/member/dashang", params),
    // 接单收益
    getReceivingList: (params = {}) => vm.$u.post("/api/member/jiedan", params),
    // 分销收益
    getDistributionList: (params = {}) => vm.$u.post("/api/member/fenxiao_list", params),
    // 冻结金额
    getFrozenList: (params = {}) => vm.$u.post("/api/member/dongjie", params),
    // 提现列表
    getWithdrawalList: (params = {}) => vm.$u.post("/api/member/tixian_list", params),
    // 提现信息
    getWithdrawalInfo: (params = {}) => vm.$u.get("/api/member/tixian", params),
    // 提现
    postWithdrawal: (params = {}) => vm.$u.post("/api/member/tixian", params),

    // 系统设置
    aboutUs: (params = {}) => vm.$u.post("/api/college/gywm", params),
    // 意见反馈
    getFeedbackType: (params = {}) => vm.$u.post("/api/college/fk_list", params),
    // 提交反馈
    submitFeedback: (params = {}) => vm.$u.post("/api/college/feedback", params),
    // 绑定银行卡
    bindBankCard: (params = {}) => vm.$u.post("/api/college/withdrawal", params),
    // 获取提现账号
    getBankCard: (params = {}) => vm.$u.get("/api/college/withdrawal", params),

    // 下拉框
    dropDown: {
      // 专业/行业
      getMajorIndustry: (params = {}) => vm.$u.post("/api/dropdown/good_at_specialty_and_industry", params),
      // 专业
      getMajorList: (params = {}) => vm.$u.post("/api/dropdown/selected_drop_downz", params),
      // 专业
      getIndustryList: (params = {}) => vm.$u.post("/api/dropdown/selected_drop_downh", params),
      // 工作经历
      getWorkExpereType: (params = {}) => vm.$u.post("/api/dropdown/work_experience", params),
      // 企业认证类型
      getEnterpriseType: (params = {}) => vm.$u.post("/api/dropdown/enterprise_certification_type", params),
      // 招聘
      getRecruitType: (params = {}) => vm.$u.post("/api/dropdown/recruitment_drop_down", params),
    },

    // IM
    getSecretKey: (params = {}) => vm.$u.get("/api/college/miyao", params),
  };
};

export default {
  install
};